//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//

import request from "@/request";

// 添加
export function AddAreaInfo(data = {}) {
    return request({url: `/api/BaseArea/AddAreaInfo`, method: 'post', data})
}

// 删除
export function DeleteAreaInfo(params = {}) {
    return request({url: `/api/BaseArea/DeleteAreaInfo`, method: 'delete', params})
}

// 修改
export function UpdateAreaInfo(data = {}) {
    return request({url: `/api/BaseArea/UpdateAreaInfo`, method: 'put', data})
}

// 列表
export function GetAreaList(params = {}) {
    return request({url: `/api/BaseArea/GetAreaList`, method: 'get', params})
}

// 树
export function GetAreaTree(params = {}) {
    return request({url: `/api/BaseArea/GetAreaTree`, method: 'get', params})
}
